#define _CRT_SECURE_NO_WARNINGS
int isPalindrome(int x)
{
	if (x < 0)
		return 0;
	int tmp = x;
	int n=0;
	while (tmp)
	{
		n =n*10+tmp % 10;
		tmp /= 10;
	}
	if (x == n)
		return 1;
	else
		return 0;
}
#include <stdio.h>
int main()
{
	int n;
	scanf("%d", &n);
	int k = isPalindrome(n);
	if (k)
		printf("true");
	else
		printf("false");
	return 0;
}